﻿<%@ Page Title="" Language="C#" MasterPageFile="~/customer/Cliente.Master" AutoEventWireup="true"
    CodeBehind="changePassword.aspx.cs" Inherits="Loja.customer.changePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style>
    fieldset
    {
        margin: 40px 25px 0 40px;          
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <fieldset style="width: 350px;">
            <legend class="labelCadastro">&nbsp Trocar senha &nbsp </legend>
            <table style="padding: 10px 30px 10px 10px; width:100%">
                <tr>
                    <td class="labelCadastro">
                        Senha atual:
                    </td>
                    <td>
                        <asp:TextBox ID="txtSenha" MaxLength="20" TextMode="Password" runat="server" Width="100%"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rqSenha" runat="server" ErrorMessage="<strong>Senha obrigatória.</strong>"
                            Display="None" ControlToValidate="txtSenha"></asp:RequiredFieldValidator>
                        <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server"
                            TargetControlID="rqSenha">
                        </ajaxToolkit:ValidatorCalloutExtender>
                        <asp:CustomValidator ID="cvSenha" runat="server" 
                            ErrorMessage="Senha atual errada!" OnServerValidate="validarSenha"
                            ControlToValidate="txtSenha" ValidateEmptyText="True" Display="None"></asp:CustomValidator>
                            <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" TargetControlID="cvSenha">
                        </ajaxToolkit:ValidatorCalloutExtender>
                       
                                               
                    </td>
                </tr>
                <tr>
                    <td class="labelCadastro">Nova senha:</td>
                    <td>
                        <asp:TextBox ID="txtNewPassword" MaxLength="20" TextMode="Password" runat="server" Width="100%"></asp:TextBox>
                        <ajaxToolkit:PasswordStrength runat="server" ID="PasswordStrength1" PrefixText="Segurança:"
                            TargetControlID="txtNewPassword" TextStrengthDescriptions="Ruim;Fraca;Média;Forte;Ótima"
                            TextStrengthDescriptionStyles="ruim;fraca;media;forte; otima" PreferredPasswordLength="10">
                        </ajaxToolkit:PasswordStrength>
                        
                        <asp:RequiredFieldValidator ID="rqNewPassword" runat="server" ErrorMessage="<strong>Nova senha obrigatória.</strong>"
                            Display="None" ControlToValidate="txtNewPassword"></asp:RequiredFieldValidator>
                        <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="rqNewPassword">
                        </ajaxToolkit:ValidatorCalloutExtender>
                    </td>
                </tr>
                <tr>
                    <td> 
                        <asp:LinkButton ID="btnSalvar" CssClass="salvar" runat="server" OnClick="btnSalvar_Click">Salvar</asp:LinkButton>                                   
                    </td>
                    <td style="text-align:right">
                        <asp:LinkButton ID="btnCancelar" CssClass="cancelar" runat="server" OnClick="btnCancelar_Click">Cancelar</asp:LinkButton>    
                    </td>
                </tr>
            </table>
        </fieldset>
        <asp:HiddenField id="hdPassword" runat=server/>
    </div>
</asp:Content>
